package com.ag.work.dao;

import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.ag.dao.TbTaskDAO;

public class TaskDAO extends TbTaskDAO {

	private static final Log log = LogFactory.getLog(TaskDAO.class);
	
	public List getMyTask(String UId){
	log.info("打印出：UId----"+UId);
	log.debug("getting TbTask by id: " + UId);
	try {
		String hql = "from TbTask where UId = ?" ;
		List list = getHibernateTemplate().find(hql,UId);
		log.info("-------"+ list);
		log.info("list----"+list.get(0));
		return  list;
	} catch (RuntimeException re) {
		log.error("get failed", re);
		throw re;
	}
	
	}
}
